//
//  AttentionComment.m
//  FLLGodOfCooking
//
//  Created by LL.F on 16/09/07
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "AttentionComment.h"
#import "AttentionParents.h"

@implementation AttentionComment

+ (NSDictionary *)objectClassInArray{
    return @{@"parents" : [AttentionParents class]};
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
    if ([key isEqualToString:@"id"]) {
        _id_Data = value;
    }
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"parents"]) {
        NSMutableArray<AttentionParents *>  *parentsArray = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            AttentionParents *data = [AttentionParents modelWithDic:dic];
            [parentsArray addObject:data];
        }
        _parents = parentsArray;
    }
}
@end
